package xian.woniuxy.be.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ServiceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ServiceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSerIdIsNull() {
            addCriterion("ser_id is null");
            return (Criteria) this;
        }

        public Criteria andSerIdIsNotNull() {
            addCriterion("ser_id is not null");
            return (Criteria) this;
        }

        public Criteria andSerIdEqualTo(Integer value) {
            addCriterion("ser_id =", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdNotEqualTo(Integer value) {
            addCriterion("ser_id <>", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdGreaterThan(Integer value) {
            addCriterion("ser_id >", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ser_id >=", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdLessThan(Integer value) {
            addCriterion("ser_id <", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdLessThanOrEqualTo(Integer value) {
            addCriterion("ser_id <=", value, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdIn(List<Integer> values) {
            addCriterion("ser_id in", values, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdNotIn(List<Integer> values) {
            addCriterion("ser_id not in", values, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdBetween(Integer value1, Integer value2) {
            addCriterion("ser_id between", value1, value2, "serId");
            return (Criteria) this;
        }

        public Criteria andSerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ser_id not between", value1, value2, "serId");
            return (Criteria) this;
        }

        public Criteria andSerTypeIsNull() {
            addCriterion("ser_type is null");
            return (Criteria) this;
        }

        public Criteria andSerTypeIsNotNull() {
            addCriterion("ser_type is not null");
            return (Criteria) this;
        }

        public Criteria andSerTypeEqualTo(Integer value) {
            addCriterion("ser_type =", value, "serType");
            return (Criteria) this;
        }

        public Criteria andSerTypeNotEqualTo(Integer value) {
            addCriterion("ser_type <>", value, "serType");
            return (Criteria) this;
        }

        public Criteria andSerTypeGreaterThan(Integer value) {
            addCriterion("ser_type >", value, "serType");
            return (Criteria) this;
        }

        public Criteria andSerTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ser_type >=", value, "serType");
            return (Criteria) this;
        }

        public Criteria andSerTypeLessThan(Integer value) {
            addCriterion("ser_type <", value, "serType");
            return (Criteria) this;
        }

        public Criteria andSerTypeLessThanOrEqualTo(Integer value) {
            addCriterion("ser_type <=", value, "serType");
            return (Criteria) this;
        }

        public Criteria andSerTypeIn(List<Integer> values) {
            addCriterion("ser_type in", values, "serType");
            return (Criteria) this;
        }

        public Criteria andSerTypeNotIn(List<Integer> values) {
            addCriterion("ser_type not in", values, "serType");
            return (Criteria) this;
        }

        public Criteria andSerTypeBetween(Integer value1, Integer value2) {
            addCriterion("ser_type between", value1, value2, "serType");
            return (Criteria) this;
        }

        public Criteria andSerTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ser_type not between", value1, value2, "serType");
            return (Criteria) this;
        }

        public Criteria andCusIdIsNull() {
            addCriterion("cus_id is null");
            return (Criteria) this;
        }

        public Criteria andCusIdIsNotNull() {
            addCriterion("cus_id is not null");
            return (Criteria) this;
        }

        public Criteria andCusIdEqualTo(Integer value) {
            addCriterion("cus_id =", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotEqualTo(Integer value) {
            addCriterion("cus_id <>", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdGreaterThan(Integer value) {
            addCriterion("cus_id >", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cus_id >=", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdLessThan(Integer value) {
            addCriterion("cus_id <", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdLessThanOrEqualTo(Integer value) {
            addCriterion("cus_id <=", value, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdIn(List<Integer> values) {
            addCriterion("cus_id in", values, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotIn(List<Integer> values) {
            addCriterion("cus_id not in", values, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdBetween(Integer value1, Integer value2) {
            addCriterion("cus_id between", value1, value2, "cusId");
            return (Criteria) this;
        }

        public Criteria andCusIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cus_id not between", value1, value2, "cusId");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("uid is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("uid is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("uid =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("uid <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("uid >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uid >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("uid <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("uid <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("uid in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("uid not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("uid between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("uid not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andSerHeadIsNull() {
            addCriterion("ser_head is null");
            return (Criteria) this;
        }

        public Criteria andSerHeadIsNotNull() {
            addCriterion("ser_head is not null");
            return (Criteria) this;
        }

        public Criteria andSerHeadEqualTo(String value) {
            addCriterion("ser_head =", value, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadNotEqualTo(String value) {
            addCriterion("ser_head <>", value, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadGreaterThan(String value) {
            addCriterion("ser_head >", value, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadGreaterThanOrEqualTo(String value) {
            addCriterion("ser_head >=", value, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadLessThan(String value) {
            addCriterion("ser_head <", value, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadLessThanOrEqualTo(String value) {
            addCriterion("ser_head <=", value, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadLike(String value) {
            addCriterion("ser_head like", value, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadNotLike(String value) {
            addCriterion("ser_head not like", value, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadIn(List<String> values) {
            addCriterion("ser_head in", values, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadNotIn(List<String> values) {
            addCriterion("ser_head not in", values, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadBetween(String value1, String value2) {
            addCriterion("ser_head between", value1, value2, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerHeadNotBetween(String value1, String value2) {
            addCriterion("ser_head not between", value1, value2, "serHead");
            return (Criteria) this;
        }

        public Criteria andSerDetailIsNull() {
            addCriterion("ser_detail is null");
            return (Criteria) this;
        }

        public Criteria andSerDetailIsNotNull() {
            addCriterion("ser_detail is not null");
            return (Criteria) this;
        }

        public Criteria andSerDetailEqualTo(String value) {
            addCriterion("ser_detail =", value, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailNotEqualTo(String value) {
            addCriterion("ser_detail <>", value, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailGreaterThan(String value) {
            addCriterion("ser_detail >", value, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailGreaterThanOrEqualTo(String value) {
            addCriterion("ser_detail >=", value, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailLessThan(String value) {
            addCriterion("ser_detail <", value, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailLessThanOrEqualTo(String value) {
            addCriterion("ser_detail <=", value, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailLike(String value) {
            addCriterion("ser_detail like", value, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailNotLike(String value) {
            addCriterion("ser_detail not like", value, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailIn(List<String> values) {
            addCriterion("ser_detail in", values, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailNotIn(List<String> values) {
            addCriterion("ser_detail not in", values, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailBetween(String value1, String value2) {
            addCriterion("ser_detail between", value1, value2, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerDetailNotBetween(String value1, String value2) {
            addCriterion("ser_detail not between", value1, value2, "serDetail");
            return (Criteria) this;
        }

        public Criteria andSerStatusIsNull() {
            addCriterion("ser_status is null");
            return (Criteria) this;
        }

        public Criteria andSerStatusIsNotNull() {
            addCriterion("ser_status is not null");
            return (Criteria) this;
        }

        public Criteria andSerStatusEqualTo(String value) {
            addCriterion("ser_status =", value, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusNotEqualTo(String value) {
            addCriterion("ser_status <>", value, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusGreaterThan(String value) {
            addCriterion("ser_status >", value, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusGreaterThanOrEqualTo(String value) {
            addCriterion("ser_status >=", value, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusLessThan(String value) {
            addCriterion("ser_status <", value, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusLessThanOrEqualTo(String value) {
            addCriterion("ser_status <=", value, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusLike(String value) {
            addCriterion("ser_status like", value, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusNotLike(String value) {
            addCriterion("ser_status not like", value, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusIn(List<String> values) {
            addCriterion("ser_status in", values, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusNotIn(List<String> values) {
            addCriterion("ser_status not in", values, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusBetween(String value1, String value2) {
            addCriterion("ser_status between", value1, value2, "serStatus");
            return (Criteria) this;
        }

        public Criteria andSerStatusNotBetween(String value1, String value2) {
            addCriterion("ser_status not between", value1, value2, "serStatus");
            return (Criteria) this;
        }

        public Criteria andDistUidIsNull() {
            addCriterion("dist_uid is null");
            return (Criteria) this;
        }

        public Criteria andDistUidIsNotNull() {
            addCriterion("dist_uid is not null");
            return (Criteria) this;
        }

        public Criteria andDistUidEqualTo(Integer value) {
            addCriterion("dist_uid =", value, "distUid");
            return (Criteria) this;
        }

        public Criteria andDistUidNotEqualTo(Integer value) {
            addCriterion("dist_uid <>", value, "distUid");
            return (Criteria) this;
        }

        public Criteria andDistUidGreaterThan(Integer value) {
            addCriterion("dist_uid >", value, "distUid");
            return (Criteria) this;
        }

        public Criteria andDistUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("dist_uid >=", value, "distUid");
            return (Criteria) this;
        }

        public Criteria andDistUidLessThan(Integer value) {
            addCriterion("dist_uid <", value, "distUid");
            return (Criteria) this;
        }

        public Criteria andDistUidLessThanOrEqualTo(Integer value) {
            addCriterion("dist_uid <=", value, "distUid");
            return (Criteria) this;
        }

        public Criteria andDistUidIn(List<Integer> values) {
            addCriterion("dist_uid in", values, "distUid");
            return (Criteria) this;
        }

        public Criteria andDistUidNotIn(List<Integer> values) {
            addCriterion("dist_uid not in", values, "distUid");
            return (Criteria) this;
        }

        public Criteria andDistUidBetween(Integer value1, Integer value2) {
            addCriterion("dist_uid between", value1, value2, "distUid");
            return (Criteria) this;
        }

        public Criteria andDistUidNotBetween(Integer value1, Integer value2) {
            addCriterion("dist_uid not between", value1, value2, "distUid");
            return (Criteria) this;
        }

        public Criteria andDistTimeIsNull() {
            addCriterion("dist_time is null");
            return (Criteria) this;
        }

        public Criteria andDistTimeIsNotNull() {
            addCriterion("dist_time is not null");
            return (Criteria) this;
        }

        public Criteria andDistTimeEqualTo(Date value) {
            addCriterion("dist_time =", value, "distTime");
            return (Criteria) this;
        }

        public Criteria andDistTimeNotEqualTo(Date value) {
            addCriterion("dist_time <>", value, "distTime");
            return (Criteria) this;
        }

        public Criteria andDistTimeGreaterThan(Date value) {
            addCriterion("dist_time >", value, "distTime");
            return (Criteria) this;
        }

        public Criteria andDistTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("dist_time >=", value, "distTime");
            return (Criteria) this;
        }

        public Criteria andDistTimeLessThan(Date value) {
            addCriterion("dist_time <", value, "distTime");
            return (Criteria) this;
        }

        public Criteria andDistTimeLessThanOrEqualTo(Date value) {
            addCriterion("dist_time <=", value, "distTime");
            return (Criteria) this;
        }

        public Criteria andDistTimeIn(List<Date> values) {
            addCriterion("dist_time in", values, "distTime");
            return (Criteria) this;
        }

        public Criteria andDistTimeNotIn(List<Date> values) {
            addCriterion("dist_time not in", values, "distTime");
            return (Criteria) this;
        }

        public Criteria andDistTimeBetween(Date value1, Date value2) {
            addCriterion("dist_time between", value1, value2, "distTime");
            return (Criteria) this;
        }

        public Criteria andDistTimeNotBetween(Date value1, Date value2) {
            addCriterion("dist_time not between", value1, value2, "distTime");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionIsNull() {
            addCriterion("ser_satisfaction is null");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionIsNotNull() {
            addCriterion("ser_satisfaction is not null");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionEqualTo(String value) {
            addCriterion("ser_satisfaction =", value, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionNotEqualTo(String value) {
            addCriterion("ser_satisfaction <>", value, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionGreaterThan(String value) {
            addCriterion("ser_satisfaction >", value, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionGreaterThanOrEqualTo(String value) {
            addCriterion("ser_satisfaction >=", value, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionLessThan(String value) {
            addCriterion("ser_satisfaction <", value, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionLessThanOrEqualTo(String value) {
            addCriterion("ser_satisfaction <=", value, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionLike(String value) {
            addCriterion("ser_satisfaction like", value, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionNotLike(String value) {
            addCriterion("ser_satisfaction not like", value, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionIn(List<String> values) {
            addCriterion("ser_satisfaction in", values, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionNotIn(List<String> values) {
            addCriterion("ser_satisfaction not in", values, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionBetween(String value1, String value2) {
            addCriterion("ser_satisfaction between", value1, value2, "serSatisfaction");
            return (Criteria) this;
        }

        public Criteria andSerSatisfactionNotBetween(String value1, String value2) {
            addCriterion("ser_satisfaction not between", value1, value2, "serSatisfaction");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}